import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/manager/listUser',
    method: 'get',
    params: query
  })
}

export function createArticle(data) {
  return request({
    url: '/manager/addUser',
    method: 'post',
    data
  })
}

export function deleteArticle(data) {
  return request({
    url: '/manager/deleteUser',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/manager/updateUser',
    method: 'post',
    data
  })
}
